'''
  @Description      
  @auther         leizi
'''
from pymysql import *
from  config import *
class OpearMysql(object):
    def __init__(self,host=host, port=port, user=username, password=password, database=db):
        self.conne=connect(host=host, port=port, user=user,
                           password=password, db=database)
    def run(self,sqlmy:str):
        with self.conne.cursor() as conn:
            conn.execute(sqlmy)
            result = conn.fetchall()
        return result

